-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set summed bin without data to fill_value #364
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #364 +/- ##
==========================================
- Coverage 94.05% 94.04% -0.01%
==========================================
Files 90 90
Lines 13575 13578 +3
==========================================
+ Hits 12768 12770 +2
- Misses 807 808 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I suppose so. Because |
@pnuu could you have a look here? |
Will do after my current endeavor with reader warnings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general looks good, just needs the conflicts to be resolved and a test case.
Oh no, the code has changed so much that resolving the conflicts will take some time 🙈 |
At least the existing tests now pass (locally). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be a test for this?
Yes, there should. @zxdawn do you have time to add something? I might have some time on monday, just need to remember... |
I'll turn this into a draft for now then. |
Maybe I have some time on Sunday or Tuesday. |
Implemented in a different way in #602. Closing... |
The
get_sum()
function doesn't accept thefill_value
kwarg and will raise error. We can set it as kwrgs with thenp.nan
default value.So, if there's no input of
fill_value
, summation will be 0 for bins without data. If thefill_value
exists, then set it tofill_value
.get_sum
not matched withbucket_sum
#354git diff origin/main **/*py | flake8 --diff